cmake_minimum_required(VERSION 2.5)
project(mymuduo)

# cmake => makefile => make 根据 makefile 的内容编译

# mymuduo最终编译成so动态库，设置动态库的路径，放在根目录lib文件夹下
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
# 设置调试信息 启动C11语言标准
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -std=c++11")

# 定义参与编译的源文件
aux_source_directory(. SRC_LIST)

# 编译生成动态库mymuduo
add_library(mymuduo SHARED ${SRC_LIST})